<?php include PATH_VIEW . 'gongyong.php'; ?>
<title>添加菜单 - 后台管理</title>

<div class="all_main">
    <div class="module_right">
        <dl>
            <dt>操作说明 
            <a href="#" onclick="dianji(17)">[关闭/展开]</a>
            </dt>
            <dd id="bb17" style="margin-left: 3px;color: red;">以下的菜单名称及排序选项为必填项。</dd>
        </dl>
    </div>
    <div class="module_right_bottom">
        <dl>
            <dt>添加后台菜单</dt>
            <dd>
                <table border="0" cellpadding="0" cellspacing="0" width="100%" class="table">
                    <form name="form1" method="post" action="<?php echo URL; ?>" onsubmit="return checkMenu()">
                        <tr>
                            <td align="right" width="100">上级菜单名称</td>
                            <td width="380" id='aaaa'>
                                <select name="pid[]" id="selec1" onchange="return getSelectOne(this.value)" style="float: left;">
                                    <option value="0" id="xiaji">请选择下级</option>
                                    <?php foreach ($different as $key => $ls) { ?>                                                                                     
                                        <option value="<?php echo $ls['Fid']; ?>" id="option"><?php echo $ls['Fname']; ?></option>                                        
                                    <?php } ?>
                                </select>
                                <select name="pid[]" id="selec2" onchange="return getSelectTwo(this.value)" style="display: none;float: left;margin-left: 7px;"></select>
                                <select name="pid[]" id="selec3" style="display: none;float: left;margin-left: 7px;"></select>
                            </td>
                            <td></td>
                        </tr>
                        <tr>
                            <td align="right">菜单名称</td>
                            <td width="230"><input id='mouse1' class="Hover" type="text" name="Fname" value="" /></td>
                            <td id="Whether1">在填写菜单名称时，请注意简短且要具有概括性。字符长度：2-16个</td>
                        </tr>
                        <tr>
                            <td align="right">class名称</td>
                            <td width="230"><input id='mouse2' class="Hover" type="text" name="Fclass" value="" /></td>
                            <td id="Whether2">该菜单归属于哪个类文件，请填写类名称（请不要填写page后缀），最多2-32个字符，注：第二级菜单不要填写</td>
                        </tr>
                        <tr>
                            <td align="right">function名称</td>
                            <td width="230"><input id='mouse3' class="Hover" type="text" name="Ffunction" value="" /></td>
                            <td id="Whether3">类中的哪个方法，最多2-32个字符，注：第二级菜单不要填写</td>
                        </tr>
                        <tr>
                            <td align="right">way名称</td>
                            <td width="230"><input id='mouse4' class="Hover" type="text" name="Fway" value="" style="width: 100px;" /></td>
                            <td id="Whether4">方法中的某一个小功能模块，最多1-16个字符，注：第二级菜单不要填写</td>
                        </tr>
                        <tr>
                            <td align="right">排序</td>
                            <td width="230"><input id='mouse5' class="Hover" maxlength="2" type="text" name="Fsort" value="1" style="width: 50px;" /></td>
                            <td id="Whether5">数值越小，排列越前，数值大小范围：1-99</td>
                        </tr>
                        <tr>
                            <td align="right">是否可见</td>
                            <td width="230">
                                <select name="Fstatus" id="Fstatus">
                                    <option value="1">是</option>
                                    <option value="0">否</option>
                                </select>
                            </td>
                            <td>是否可见的意思是，是否在页面顶部或左侧将此菜单显示出来</td>
                        </tr>
                        <tr>
                            <td></td>
                            <td width="230">
                                <input type="submit" class="queren" name="ok" value="确认提交" />
                                <input type="button" class="fanhui" name="ok" value="返回" onclick="location.href = '<?php echo str_replace('&A=menuAdd', '&A=menuList', URL.'&way=aa'); ?>'" />
                            </td>
                            <td></td>
                        </tr>
                    </form>
                </table>

            </dd>
        </dl>
    </div>
</div>

